package cn.itcast.controller;

import cn.itcast.model.Msg;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: zhaojie
 * @Date: Created in 10:29 2018/4/23
 * @Description:
 * @Modified By:
 */

@Controller
public class HomeController {

    @RequestMapping("/")
    public String index(Model model){
        Msg msg=new Msg("张三","hello","管理员的专用字体");
        model.addAttribute("msg",msg);
        return "show";
    }
}
